<?php

namespace App\Models\nursery;

use App\Models\base\traits\HasMajor;
use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\nursery\UserMajors
 *
 * @property int $id
 * @property int $user_id 关联用户ID
 * @property int $major_id 关联专业ID
 * @property int $num 卖出数量
 * @property float $price 服务价格
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property-read \App\Models\nursery\Major $major
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\nursery\UserMajor newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\nursery\UserMajor newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\nursery\UserMajor query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\nursery\UserMajor whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\nursery\UserMajor whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\nursery\UserMajor whereMajorId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\nursery\UserMajor whereNum($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\nursery\UserMajor wherePrice($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\nursery\UserMajor whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\nursery\UserMajor whereUserId($value)
 * @mixin \Eloquent
 * @property float $star 评分
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\nursery\UserMajor whereStar($value)
 */
class UserMajor extends Model
{
    use HasMajor;

    protected $fillable = [
        'user_id',
        'major_id',
        'price'
    ];
}
